#include "SketchPaint.h"

CSketchPaint::CSketchPaint()
{
	m_curveSegment = 8;
	m_lineWidth = 1.2f;
	m_pointSize = 6.0f;

	m_lineColor[0] = 0.1f;
	m_lineColor[1] = 0.1f;
	m_lineColor[2] = 0.1f;

	m_scaffoldColor[0] = 0.1f;
	m_scaffoldColor[1] = 0.7f;
	m_scaffoldColor[2] = 0.1f;

	m_pointColor[0] = 0.1f;
	m_pointColor[1] = 0.1f;
	m_pointColor[2] = 0.9f;

	m_activeVertexColor[0] = 0.9f;
	m_activeVertexColor[1] = 0.9f;
	m_activeVertexColor[2] = 0.9f;
}

CSketchPaint::~CSketchPaint()
{

}

void CSketchPaint::GetScaffoldColor(float color[])
{
	for (int i = 0; i < 3; i++)
		color[i] = m_scaffoldColor[i];
}
void CSketchPaint::GetLineColor(float color[])
{
	for (int i = 0; i < 3; i++)
		color[i] = m_lineColor[i];
}

void CSketchPaint::GetPointColor(float color[])
{
	for (int i = 0; i < 3; i++)
		color[i] = m_pointColor[i];
}

void CSketchPaint::GetActiveVertexColor(float color[])
{
	for (int i = 0; i < 3; i++)
		color[i] = m_activeVertexColor[i];
}

void CSketchPaint::SetScaffoldColor(float color[])
{
	for (int i = 0; i < 3; i++)
		m_scaffoldColor[i] = color[i];
}

void CSketchPaint::SetLineColor(float color[])
{
	for (int i = 0; i < 3; i++)
		m_lineColor[i] = color[i];
}

void CSketchPaint::SetPointColor(float color[])
{
	for (int i = 0; i < 3; i++)
		m_pointColor[i] = color[i];
}

void CSketchPaint::SetActiveVertexColor(float color[])
{
	for (int i = 0; i < 3; i++)
		m_activeVertexColor[i] = color[i];
}